﻿@{
    ViewBag.Title = "净化车间净化供料系统总的打料量";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section scripts{
        <script src="~/Areas/Pacm/js/Pacm.Djcgl.js" type="text/javascript"></script>
        <script type="text/javascript">
            using(['validatebox','combotree','numberbox','datebox']);
            var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
            ko.bindingViewModel(new viewModel(data));
        </script>
}

  <div class="z-toolbar">
        <a id="a_refresh" href="#" plain="true" class="easyui-linkbutton" icon="icon-arrow_refresh" title="刷新" data-bind="click:refreshClick">刷新</a>
        <a id="a_add"    href="#" plain="true" class="easyui-linkbutton" icon="icon-add" title="新增" data-bind="click:addClick">新增</a>
        <a id="a_edit"   href="#" plain="true" class="easyui-linkbutton" icon="icon-edit" data-bind="click:editClick" title="编辑">编辑</a>
        <a id="a_del"    href="#" plain="true" class="easyui-linkbutton" icon="icon-cross" title="删除" data-bind="click:deleteClick">删除</a>
        <a id="a_save"  href="#" plain="true" class="easyui-linkbutton" icon="icon-save" data-bind="click:saveClick" title="保存">保存</a>
        <a href="#" plain="true" class="easyui-linkbutton"  icon="icon-user-accept"     title="审核" data-bind="click:auditClick"  >审核</a>
    </div>

<div id="condition" class="container_12" style="position:relative;">
    <div class="grid_1 lbl">计划年份</div>
    <div class="grid_2 val"><input type="text" data-bind="datasource:dataSource.yearsItems ,comboboxValue:form.Djcgll_Year" class="z-txt easyui-combobox" data-options="showblank:true"/></div>
    <div class="grid_1 lbl">计划月份</div>
    <div class="grid_2 val"><input type="text" data-bind="datasource:dataSource.monthItems ,comboboxValue:form.Djcgll_Month" class="z-txt easyui-combobox" data-options="showblank:true"/></div>

    <div class="clear"></div>
    <div class="grid_1 lbl">录入日期</div>
    <div class="grid_2 val"><input type="text" data-bind="value:form.CreateDate" class="z-txt easyui-daterange"/></div>
    <div class="clear"></div>
    <div class="prefix_9" style="position:absolute;top:5px;height:0;">  
        <a id="a_search" href="#" class="button button-blue" style="margin:0 15px;" data-bind="click:searchClick">查询</a> 
        @*<a id="a_reset" href="#" class="button button-blue" data-bind="click:clearClick">清空</a>*@
    </div>
</div>
<table id="gridlist" data-bind="treegrid:grid">
    <thead>  
    <tr>  
        <th field="Djcgll_BillNo"     editor="text" sortable="true" align="left"    width="90"  >流水号   </th>  
        <th field="Djcgll_Year"       editor="text" sortable="true" align="left"    width="70"  >计划年度     </th>  
        <th field="Djcgll_Month"      editor="text" sortable="true" align="left"    width="70"  >计划月份     </th>  
        <th field="Djcgll_Rdll"       sortable="true" align="right"    width="100"    editor="{type:'numberbox',options:{precision:2}}" >日打料量（吨)       </th>  
        <th field="Djcgll_Scyl"       sortable="true" align="right"    width="100"   editor="{type:'numberbox',options:{precision:2}}" >月生产用料（吨）     </th>  
        <th field="Djcgll_Bll"        sortable="true" align="right"    width="100"   editor="{type:'numberbox',options:{precision:2}}">供料及时保量率%      </th>  
        <th field="Djcgll_Xxclw"      sortable="true" align="right"    width="100"   editor="{type:'numberbox',options:{precision:2}}" >新鲜仓料位(m)    </th>  
        <th field="Djcgll_Zfclw"      sortable="true" align="right"    width="100"    editor="{type:'numberbox',options:{precision:2}}">载氟仓料位(m)      </th> 
        <th field="Djcgll_Remark"     editor="text" sortable="true" align="left"    width="150"  >  备注  </th>  
        <th field="CreateDate"        sortable="true" align="center"  width="100"     editor="datebox" formatter="com.formatDate" >编制日期   </th>  
        <th field="CreatePerson"      sortable="true" align="left"    width="150" >编制人       </th>   
    </tr>                            
</thead>      
</table> 
